package com.rxh.utils;

public class BankResultInfoCode {
    /**
     * 
     * 返回给客户端的状态码和状态信息
     * 
     * @author tantingdong
     * @date  2016-11-04
     *
     */
    public enum CommunicateCodeTwo {
        Refer_to_card_issuer(0, "error.7000"),
        Refer_to_card_issuer_special_condition(1, "error.7001"),
        Invalid_merchant_or_service_provider(2, "error.7002"),
        Do_not_honor(3, "error.7003"),
        Pickup_card_special_condition_other_than_lost_stolen_card(4, "error.7004"),
        Invalid_transaction(5, "error.7005"),
        Invalid_amount(6, "error.7006"),
        Invalid_account_number(7, "error.7007"),
        Re_enter_transaction(8, "error.7008"),
        No_action_taken(9, "error.709"),
        ERROR_CALL_NT(10, "error.7010"),
        ERROR_CALL_FE(11, "error.7011"),
        CALL_HELP(12, "error.7012"),
        PICK_UP_LOST_CARD(13, "error.7013"),
        PICK_UP_STOLEN_CARD(14, "error.7014"),
        Insufficient_funds(15, "error.7015"),
        Expired_card(16, "error.7016"),
        Incorrect_PIN(17, "error.7017"),
        Transaction_not_permitted_to_cardholder(18, "error.7018"),
        Transaction_not_allowed_at_terminal(19, "error.7019"),
        ACCT_NO_NOT_FOUND(20, "error.7020"),
        Activity_amount_limit_exceeded(21, "error.7021"),
        Restricted_card(22, "error.7022"),
        ENCRYTION_ERROR(23, "error.7023"),
        PIN_TRIES_EXCEES(24, "error.7024"),
        PRODUCT_CODE_ERR(25, "error.7025"),
        RECONCOLE_ERROR(26, "error.7026"),
        TRACE_NOT_FOUND(27, "error.7027"),
        BATCH_EXIST(28, "error.7028"),
        BAD_BATCH_NUMBER(29, "error.7029"),
        Issuer_unavailable(30, "error.7030"),
        Duplicate_transaction(31, "error.7031"),
        BATCH_TRANSFER(32, "error.7032"),
        System_malfunction(33, "error.7033"),
        Host_unavailable(34, "error.7034"),
        Non_DCC_transaction(35, "error.7035"),
        CHIP_CARD_NOT_SUPPORT(36, "error.7036"),
        UNABLE_TO_GO_ONLINE(37, "error.7037"),
        Please_contact_acquirer(38, "error.7038"),
        //GCpay返回信息对应的错误编码
        G0000(0,"error.g0"),
        G0001(1,"error.g1"),
        G0002(2,"error.g2"),
        G0003(3,"error.g3"),
        G0004(4,"error.g4"),
        G0005(5,"error.g5"),
        G0006(6,"error.g6"),
        G0007(7,"error.g7"),
        G0008(8,"error.g8"),
        G0009(9,"error.g9"),
        G0010(10,"error.g10"),
        G0011(11,"error.g11"),
        G0012(12,"error.g12"),
        G0013(13,"error.g13"),
        G0014(14,"error.g14"),
        G0015(15,"error.g15"),
        G0016(16,"error.g16"),
        G0017(17,"error.g17"),
        G0018(18,"error.g18"),
        G0019(19,"error.g19"),
        G0020(20,"error.g20"),
        G0021(21,"error.g21"),
        G0022(22,"error.g22"),
        G0023(23,"error.g23"),
        G0024(24,"error.g24"),
        G0025(25,"error.g25"),
        G0026(26,"error.g26"),
        G0027(27,"error.g27"),
        G0028(28,"error.g28"),
        G0029(29,"error.g29"),
        G0030(30,"error.g30"),
        G0031(31,"error.g31"),
        G0032(32,"error.g32"),
        G0033(33,"error.g33"),
        G0034(34,"error.g34"),
        G0035(35,"error.g35"),
        G0036(36,"error.g36"),
        G0037(37,"error.g37"),
        G0038(38,"error.g38"),
        G0039(39,"error.g39"),
        G0040(40,"error.g40"),
        G0041(41,"error.g41"),
        G0042(42,"error.g42"),
        G0043(43,"error.g43"),
        G0045(45,"error.g45"),
        G0046(46,"error.g46"),
        G0047(47,"error.g47"),
        G0048(48,"error.g48"),
        G0049(49,"error.g49"),
        G0050(50,"error.g50"),
        G0051(51,"error.g51"),
        G0052(52,"error.g52"),
        G0053(53,"error.g53"),
        G0054(54,"error.g54"),
        G0055(55,"error.g55"),
        G0056(56,"error.g56"),
        G0057(57,"error.g57"),
        G0058(58,"error.g58"),
        G0059(59,"error.g59"),
        G0060(60,"error.g60"),
        G0061(61,"error.g61"),
        G0066(66,"error.g66"),
        G0067(67,"error.g67"),
        G0068(68,"error.g68"),
        G0069(69,"error.g69"),
        G0070(70,"error.g70"),
        G0071(71,"error.g71"),
        G0072(72,"error.g72"),
        G0073(73,"error.g73"),
        G0074(74,"error.g74"),
        G0075(75,"error.g75"),
        G0076(76,"error.g76"),
        G0077(77,"error.g77"),
        G0078(78,"error.g78"),
        G0079(79,"error.g79"),
        G0080(80,"error.g80"),
        G0081(81,"error.g81"),
        G0082(82,"error.g82"),
        G0083(83,"error.g83"),
        G0084(84,"error.g84"),
        G0085(85,"error.g85"),
        G0086(86,"error.g86"),
        G0087(87,"error.g87"),
        G0088(88,"error.g88"),
        G0089(89,"error.g89"),
        G0300(90,"error.g90"),  
        G0301(91,"error.g91"),  
        G0302(92,"error.g92"),  
        G0303(93,"error.g93"),  
        G0304(94,"error.g94"),  
        G0308(95,"error.g95"),  
        G0309(96,"error.g96"),  
        G0310(97,"error.g97"),  
        G0311(98,"error.g98"),  
        G0313(99,"error.g99"),  
        G0315(100,"error.g100"),
        G0316(101,"error.g101"),
        G0317(102,"error.g102"),
        G0327(103,"error.g103"),
        G0328(104,"error.g104"),
        G0329(105,"error.g105"),
        G0330(106,"error.g106"),
        G0340(107,"error.g107"),
        G0341(108,"error.g108"),
        G0342(109,"error.g109"),
        G0343(110,"error.g110"),
        G0344(111,"error.g111"),
        G0346(112,"error.g112"),
        G0347(113,"error.g113"),
        G0348(114,"error.g114"),
        G0400(115,"error.g115"),
        G0401(116,"error.g116"),
        G0402(117,"error.g117"),
        G0403(118,"error.g118"),
        G0450(119,"error.g119"),
        G0451(120,"error.g120"),
        G0452(121,"error.g121"),
        G0500(122,"error.g122"),
        G0501(123,"error.g123"),
        G0502(124,"error.g124"),
        G0503(125,"error.g125"),
        G0504(126,"error.g126"),
        G0505(127,"error.g127"),
        G1000(128,"error.g128"),
        G1002(129,"error.g129"),
        G1003(130,"error.g130"),
        G1004(131,"error.g131"),
        G1008(132,"error.g132"),
        G1011(133,"error.g133"),
        G1023(134,"error.g134"),
        G1034(135,"error.g135"),
        G2000(136,"error.g136"),
        G2002(137,"error.g137"),
        G2003(138,"error.g138"),
        G2004(139,"error.g139"),
        G2005(140,"error.g140"),
        G2006(141,"error.g141"),
        G2014(142,"error.g142"),
        G2021(143,"error.g143"),
        G2023(144,"error.g144"),
        G2024(145,"error.g145"),
        G2105(146,"error.g146"),
        G3000(147,"error.g147"),
        G3002(148,"error.g148"),
        G3004(149,"error.g149"),
        G3005(150,"error.g150"),
        G3006(151,"error.g151"),
        G3009(152,"error.g152"),
        G3010(153,"error.g153"),
        G3013(154,"error.g154"),
        G3015(155,"error.g155"),
        G3017(156,"error.g156"),
        G3020(157,"error.g157"),
        G3025(158,"error.g158"),
        G3026(159,"error.g159"),
        G3028(160,"error.g160"),
        G3029(161,"error.g161"),
        G3085(162,"error.g162"),
        G3086(163,"error.g163"),
        G3088(164,"error.g164"),
        G3089(165,"error.g165"),
        G3090(166,"error.g166"),
        G3091(167,"error.g167"),
        G3092(168,"error.g168"),
        G3093(169,"error.g169"),
        G3094(170,"error.g170"),
        G3095(171,"error.g171"),
        G3096(172,"error.g172"),
        G3097(173,"error.g173"),
        G3098(174,"error.g174"),
        G3099(175,"error.g175"),
        G3100(176,"error.g176"),
        G3101(177,"error.g177"),
        G3102(178,"error.g178"),
        G3103(179,"error.g179"),
        G3104(180,"error.g180"),
        G3105(181,"error.g181"),
        G3106(182,"error.g182"),
        G3108(183,"error.g183"),
        G3110(184,"error.g184"),
        G3111(185,"error.g185"),
        G3117(186,"error.g186"),
        G3118(187,"error.g187"),
        G3119(188,"error.g188"),
        G3120(189,"error.g189"),
        G3121(190,"error.g190"),
        G3122(191,"error.g191"),
        G3124(192,"error.g192"),
        G3125(193,"error.g193"),
        G3126(194,"error.g194"),
        G3127(195,"error.g195"),
        G3128(196,"error.g196"),
        G3129(197,"error.g197"),
        G3130(198,"error.g198"),
        G3131(199,"error.g199"),
        G3132(200,"error.g200"),
        G3133(201,"error.g201"),
        G3134(202,"error.g202"),
        G4000(203,"error.g203"),
        G4001(204,"error.g204"),
        G4002(205,"error.g205"),
        G4003(206,"error.g206"),
        G5005(207,"error.g207"),
        G7001(208,"error.g208"),
        G8000(209,"error.g209"),
        G8002(210,"error.g210"),
        G8003(211,"error.g211"),
        G8004(212,"error.g212"),
        G9000(213,"error.g213"),
        G9001(214,"error.g214"),
        G9002(215,"error.g215"),
        G9005(216,"error.g216"),
        G9006(217,"error.g217"),
        
        //AllinPay返回错误信息编码
        /*A00000(1,"error.a1"),  
        A30002(2,"error.a2"),  
        A30003(3,"error.a3"),  
        A50001(4,"error.a4"),  
        A50055(5,"error.a5"),  
        A50056(6,"error.a6"),  
        A50014(7,"error.a7"),  
        A50075(8,"error.a8"),  
        ATX10003(9,"error.a9"),
        ATX10007(10,"error.a10"), 
        ATX10008(11,"error.a11"), 
        ATX10010(12,"error.a12"), 
        ATX10026(13,"error.a13"), 
        ATX10027(14,"error.a14"), 
        AMOQ00008(15,"error.a15"),
        AMOQ00009(16,"error.a16"),*/
        A10033(10033, "error.a10033"),
        A10063(10063, "error.a10063"),
        A10065(10065, "error.a10065"),
        A10067(10067, "error.a10067"),
        A10071(10071, "error.a10071"),
        A15005(15005, "error.a15005"),
        A15009(15009, "error.a15009"),
        A15010(15010, "error.a15010"),
        A30002(30002, "error.a30002"),
        A30003(30003, "error.a30003"),
        A30013(30013, "error.a30013"),
        A50001(50001, "error.a50001"),
        A50014(50014, "error.a50014"),
        A50055(50055, "error.a50055"),
        A50056(50056, "error.a50056"),
        A50075(50075, "error.a50075"),
        A50093(50093, "error.a50093"),
        A50094(50094, "error.a50094"),
        A50095(50095, "error.a50095"),
        A50096(50096, "error.a50096"),
        A50097(50097, "error.a50097"),
        A50098(50098, "error.a50098"),
        A50099(50099, "error.a50099"),
        A50100(50100, "error.a50100"),
        A50101(50101, "error.a50101"),
        A50102(50102, "error.a50102"),
        A50103(50103, "error.a50103"),
        A50104(50104, "error.a50104"),

    	// GrePay返回错误信息编码
        gr3030(3030,"error.gr3030"),
        gr3100(3100,"error.gr3100"),
        gr3093(3093,"error.gr3093"),
        gr3088(3088,"error.gr3088"),
        gr3102(3102,"error.gr3102"),
        gr3089(3089,"error.gr3089"),
        gr3084(3084,"error.gr3084"),
        gr3103(3103,"error.gr3103"),
        gr3129(3129,"error.gr3129"),
        gr3104(3104,"error.gr3104"),
        gr3004(3004,"error.gr3004"),
        gr1002(1002,"error.gr1002"),
        gr3092(3092,"error.gr3092"),
        gr3110(3110,"error.gr3110"),
        gr3094(3094,"error.gr3094"),
        gr3119(3119,"error.gr3119"),
        gr3095(3095,"error.gr3095");


       /* not_sufficient_funds(0, "error.6003"), 
        Unauthorized(1, "error.6004"), 
        //Transaction_not_permitted_to_cardholder(2, "error.6005"),----
        //Invalid_transaction(3,"error.6006"),---
        Invalid_issuing_bank(4,"error.6005"),
        Card_transaction_exceeds_the_upper_limit(5,"error.6006");*/

        /**
         * 返回状态码
         */
        private int statusCode;
        /**
         * 返回状态信息
         */
        private String statusMsg;

        CommunicateCodeTwo(int statusCode, String statusMsg) {
            this.statusCode = statusCode;
            this.statusMsg = statusMsg;
        }

        /**
         * @return the statusCode
         */
        public int getStatusCode() {
            return statusCode;
        }

        /**
         * @return the statusMsg
         */
        public String getStatusMsg() {
            return statusMsg;
        }
    }
}
